import requests


class LoginApi(object):

    @classmethod
    def login(cls, body):
        """
        发送登录请求
        :param body: 请求体  类型：字典
        :return: 响应对象
        """
        url = "http://ihrm2-test.itheima.net/api/sys/login"
        resp = requests.post(url, json=body)
        return resp
